namespace Work01_P2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            HuaweiPhone p = new HuaweiPhone();
            MessageBox.Show(p.say());
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Phone p = new Phone();
            MessageBox.Show(p.say());        }

        private void button2_Click(object sender, EventArgs e)
        {
            iPhone p = new iPhone();
            MessageBox.Show(p.say());

        }
    }
}